#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int maint2()
{
	void sort1(int x[], int n);
	int i, * p, a[10];
	p = a;
	printf("please enter 10 integer numbers:");
	for (i = 0; i < 10; i++)
		scanf("%d", p++);
	p = a;
	sort1(p, 10);
	for (p = a, i = 0; i < 10; i++)
	{
		printf("%d ", *p);
		p++;
	}
	printf("\n");
	return 0;
}
void sort1(int x[], int n)
{
	int i, j, k, t;
	for (i = 0; i < n - 1; i++)
	{
		k = i;
		for (j = i + 1; j < n; j++)
			if (x[j] > x[k])k = j;
		if (k != i)
			t = x[i]; x[i] = x[k]; x[k] = t;
	}
}
	
	/*int a[10] = { 1,2,3 };
	printf("%d", a[6]);*/


	/*char a[50], b[50] = { "\0" }, c[50] = { "\0" };
	int m, n, i;
	gets(a);
	strcat(b, a[1]);
	printf("%c", b[0]);
	printf("");*/
	